package com.ruoyi.project.hissystem.service.impl;

import com.ruoyi.project.hissystem.domain.SysKeShi;
import com.ruoyi.project.hissystem.mapper.ISysKeShiMapper;
import com.ruoyi.project.hissystem.service.ISysKeShiService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class ISysKeShiServiceImpl implements ISysKeShiService {
    @Autowired
    private ISysKeShiMapper iSysKeShiMapper;
    @Override
    public List<SysKeShi> selSysKeShiList(SysKeShi sysKeShi) {
        List<SysKeShi> sysKeShis = iSysKeShiMapper.selectSysKeShiList(sysKeShi);
        return sysKeShis;
    }

    @Override
    public int insSysKeShi(SysKeShi sysKeShi) {
        int i = iSysKeShiMapper.insertSysKeShi(sysKeShi);
        return i;
    }

    @Override
    public SysKeShi selSysKeShiOne(int keshiid) {
        SysKeShi sysKeShi = iSysKeShiMapper.selectSysKeShiOne(keshiid);
        return sysKeShi;
    }

    @Override
    public int upSysKeShi(SysKeShi sysKeShi) {
        int i = iSysKeShiMapper.updataSysKeShi(sysKeShi);
        return i;
    }

    @Override
    public int datSysKeShi(int[] keshiids) {
        int i = iSysKeShiMapper.deleteSysKeShi(keshiids);
        return i;
    }
}
